package com.gitee.faster.webdav.kernel.event;

import java.awt.*;

/**
 * @author hongda.li
 */
public class SystemNotificationListener implements EventListener<NotificationEvent> {
    @Override
    public void doListen(NotificationEvent event) {
        TrayIcon trayIcon = SystemPreparedListener.getTrayIcon();
        if (trayIcon != null) {
            trayIcon.displayMessage(event.getTitle(), event.getMessage(), event.getMessageType());
        }
    }
}
